import YchConstant from "@/api/YchConstant"; //接口模块配置项
import { axios } from "@/utils/request"; //请求

// 流程办理意见-list
export const  flowOptionList = function(params) {
  return axios({
    url: YchConstant.SPZX_SPCY + "/sysUserCyyj/list",
    params: params,
    method: "GET",
    url_1:'outside'
  });
} 

// 流程办理意见-添加
export const flowOptionAdd = function (data) {
  return axios({
    url: YchConstant.SPZX_SPCY + "/sysUserCyyj/add",
    data: data,
    method: "POST",
    url_1:'outside'
  });
};
// 流程办理意见-删除
export const flowOptionDeleteBatch = function (ids) {
  return axios({
    url: YchConstant.SPZX_SPCY + "/sysUserCyyj/deleteBatch",
    params: {ids:ids},
    method: "delete",
  });
};


// get
export const getActive = function(url,params) {
  return axios({
    url: YchConstant.SPZX_SPCY + url,
    params: params,
    method: "GET",
    url_1:'outside'
  });
}


// 流程请求接口
export const flowArr = function(value = '') {
  const array = [
    'flow-ndkp/queryJobByJobId'
  ]
  return array.find(a => a.includes(value))
 
}

// 获取数字字典
export const dict = function(val) {
  return axios({
    url: YchConstant.SPZX_SPCY + '/dict/getDictListByDictName',
    params: {dictName:val},
    method: "GET",
    url_1:'outside'
  });
}


